//#define __FORCE_TRACE__
//#define __FORCE_DEBUG__
//#define __FORCE_INFO__
#define THIS_FILE "fn_outOfLifes.sqf"
#include <btc_macros.h>
TRACE_1("Start",_this);


	if (BTC_lifes == 0) then
	{
		closeDialog 0;
		removeAllWeapons player;
		player enableSimulation false;
		titleText ["You have no more lifes", "BLACK FADED"];//BLACK FADED
		sleep 1;
		if (BTC_spectating == 0) then
		{
			while {true} do
			{
				player enableSimulation false;
				player setpos [0,0,6000];
				player setVelocity [0,0,0];
				titleText ["You have no more lifes", "BLACK FADED"];
				sleep 1;
			};
		} else {[] spawn BTCR_fnc_spectating;};
	};
